package org.msss.gamebasic;

import java.util.ArrayList;

/**
 * Or game map, this holds all the sprites for the game.
 * 
 * @author alanxoc3
 * 
 */
public final class Room {

	// declare vars
	private ArrayList<Icon> icons;
	private ArrayList<Sprite> sprites;

	public Room(ArrayList<Icon> icons, ArrayList<Sprite> sprites) {
		this.icons = icons;
		this.sprites = sprites;
	}

	public Room() {
		this(new ArrayList<Icon>(), new ArrayList<Sprite>());
	}

	// ARRAYLISTS
	public ArrayList<Icon> getIcons() {
		return icons;
	}

	public ArrayList<Sprite> getSprites() {
		return sprites;
	}

	// SIZES
	public int iconSize() {
		return icons.size();
	}

	public int spriteSize() {
		return sprites.size();
	}

	// ADDERS AND SETTERS AND GETTERS
	public void addIcon(Icon newIcon) {
		icons.add(newIcon);
	}
	
	public Icon getIcon(int index) {
		return icons.get(index);
	}

	public void setIcon(int index, Icon newIcon) {
		icons.set(index, newIcon);
	}

	public void addSprite(Sprite newSprite) {
		sprites.add(newSprite);
	}
	
	
	public Sprite getSprite(int index) {
		return sprites.get(index);
	}

	public void setSprite(int index, Sprite newSprite) {
		sprites.set(index, newSprite);
	}
}
